<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"       xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        <ui:define name="title">
            <h:outputText value=""></h:outputText>
        </ui:define>
        <ui:define name="content">
            
             
                <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
                <p:panel header="#{bundle.EditItemFourTitle}" >
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditItemFourLabel_leader}" for="leader" />
                    <p:inputText id="leader" value="#{itemFourController.selected.leader}" title="#{bundle.EditItemFourTitle_leader}" required="true" requiredMessage="#{bundle.EditItemFourRequiredMessage_leader}"/>
                    <h:outputLabel value="#{bundle.EditItemFourLabel_item}" for="item" />
                    <p:selectOneMenu id="item" value="#{itemFourController.selected.item}" title="#{bundle.EditItemFourTitle_item}" required="true" requiredMessage="#{bundle.EditItemFourRequiredMessage_item}">
                        <f:selectItems value="#{itemController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditItemFourLabel_fournisseur}" for="fournisseur" />
                    <p:selectOneMenu id="fournisseur" value="#{itemFourController.selected.fournisseur}" title="#{bundle.EditItemFourTitle_fournisseur}" required="true" requiredMessage="#{bundle.EditItemFourRequiredMessage_fournisseur}">
                        <f:selectItems value="#{fournisseurController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{itemFourController.update}" value="#{bundle.EditItemFourSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditItemFourViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{itemFourController.prepareList}" value="#{bundle.EditItemFourShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditItemFourIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
